//
//  MGHiddleLabel.m
//  MGPublic
//
//  Created by lhongl on 2025/11/19.
//

#import "MGHiddleLabel.h"
#import "MGEmpty.h"
@implementation MGHiddleLabel
- (instancetype)init {
    if (self = [super init]) {
        self.hidden = YES;
    }
    return self;
}

- (instancetype)initWithFrame:(CGRect)frame {
    if (self = [super initWithFrame:frame]) {
        self.hidden = YES;
    }
    return self;
}

- (void)setText:(NSString *)text {
    [super setText:text];
    self.hidden = MGEmpty.isEmpty(text);
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
